<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SK43 TokTok Project</title>
<script language="javascript" type="text/javascript">
function sub1() {
	document.departmentDelForm.submit();
}
</script>
</head>
 
<body>
<table  width="1024" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td style="height:80px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/top.jsp"></jsp:include>
		</td>
	</tr>
	<tr>
		<td style="height:600px" valign="top">
			<!-- 본페이지 시작 -->
		<table>
			<c:forEach var="dept_view" items="${dept_view}">

				<tr>
					<td>${dept_view.department_id}</td>
					<td>${dept_view.department_name}</td>
					<td>${dept_view.manager_id}</td>
				</tr>
			</c:forEach>
		</table>
		<form name="departmentDelForm" action="./DeleteDepartment"
			method="post">
		<table>
			<tr>
				<td><select name="department_id" onchange="test()")>
					<option value="">삭제할 부서를 선택하세요</option>
					<c:forEach var="dept_view" items="${dept_view}">
						<option value="${dept_view.department_id}">${dept_view.department_id}
						- ${dept_view.department_name}</option>

					</c:forEach>
				</select> <input type="text" name="department_name" value="변경할 부서명 입력"
					onfocus="this.value=''" /> <input type="text" name="manager_id"
					value="변경할 부서코드 입력" onfocus="this.value=''" /> <input
					type="button" value="삭제하기" onclick="sub1()" /></td>
			</tr>
		</table>
		</form>
		</td>
	</tr>
	<!-- 본페이지 끝-->
	<!-- 하단 페이지 시작-->
	<tr>
		<td style="height:40px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/bottom.jsp"></jsp:include>
		</td>
	</tr>
	
</table>

</body>
</html>





